import { IUI } from "leafer-ui";
import { BlackType } from ".";
import { sprite } from "./Sprite";
export class Black {
  x = 0;
  y = 0;
  width = 0;
  height = 0;
  fill = "";
  zIndex = 1;
  targter: IUI;
  isRadiusPoint: boolean;
  constructor(obj: BlackType) {
    const { x, y, width, height, fill, targter, isRadiusPoint } = obj;
    this.x = x;
    this.y = y;
    this.width = width;
    this.height = height;
    this.isRadiusPoint = isRadiusPoint;
    fill && (this.fill = fill);
    targter && (this.targter = targter);
    sprite.addDraw(this);
  }
}
